package com.aaa.hospital.nurse.service.Impl;

import com.aaa.hospital.nurse.mapper.OpenMapper;
import com.aaa.hospital.nurse.service.OpenService;
import com.aaa.hospital.nurse.util.OpenDB;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class OpenServiceImpl implements OpenService {
    @Autowired
    private OpenMapper mapper;
    @Override
    public List<OpenDB> queryOpenDB() {
        return mapper.queryOpenDB();
    }

    @Override
    public OpenDB selectOpenDB(Integer warid) {
        return mapper.selectOpenDB(warid);
    }

    @Override
    public int updateStatus(Integer warid) {
        return mapper.updateStatus(warid);
    }

    @Override
    public int updateBedStatus(Integer id) {
        return mapper.updateBedStatus(id);
    }

    @Override
    public List<OpenDB> queryOpenDBByName(String uname) {
        return mapper.queryOpenDBByName(uname);
    }
}
